<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button onclick="console.log('西兰花炒蛋~~~')">点我试试看亚</button>

    <!-- 适合 页面中的逻辑，或者简短的逻辑 -->
    <script>
      console.log('么么哒')
    </script>

    <!-- 引入 -->
    <script src="./js/my.js"></script>
  </body>
</html>